﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FI.Core
{
    /// <summary>
    /// The base class of search criteria.
    /// </summary>
    public abstract class SearchCriteriaBase
    {
        /// <summary>
        /// Gets or sets the name of field by which the search result is ordered.
        /// </summary>
        /// <value>The name of field by which the search result is ordered.</value>
        public string OrderBy { get; set; }

        /// <summary>
        /// Gets or sets the sort direction.
        /// </summary>
        /// <value>The sort direction.</value>
        public SortDirection SortDirection { get; set; }

        /// <summary>
        /// Gets or sets the size of the page.
        /// </summary>
        /// <value>The size of the page.</value>
        public int PageSize { get; set; }

        /// <summary>
        /// Gets or sets the page index of returned data.
        /// </summary>
        /// <value>The page index of returned data.</value>
        public int PageIndex { get; set; }
    }
}
